
public class TestShareTicket {

    public static void main(String[] args) {

        IShareTicket ticket = TicketShareFactory.getTicketInfo("深圳", "广州");
        ticket.setSeat("硬座");
        ticket = TicketShareFactory.getTicketInfo("深圳", "广州");
        ticket.setSeat("硬卧");

        ticket.info();
    }
}